#ifndef ADMINUI_H
#define ADMINUI_H

#include <QWidget>
#include <QLabel>
#include "Icobutton.h"
#include "pushbutton.h"
#include "TcpUI.h"
class AdminUI : public QWidget
{
    Q_OBJECT
public:
    explicit AdminUI(QWidget *parent = 0);
private:
    PushButton      *m_ico1;
    PushButton      *m_ico2;
    PushButton      *m_ico3;
    PushButton      *m_ico4;
    PushButton      *m_ico5;
    IcoButton       *m_ico6;
    IcoButton       *m_ico7;
    PushButton      *m_btnOrg;
    PushButton      *m_btnLeft;
    PushButton      *m_btnRight;
    QWidget         *m_LangUI;
    QLabel          *m_labelNote;
    bool            m_userPress;
    bool            m_rootPress;
    int             m_renewalOK;
    int             m_languageType;
    TcpUI           *m_TcpUI;
signals:
    void    SwitchLanguages(int);
    void    CallKeyBoard(const QString&,int);
    void    SendTCPUIKeyBoardData(const QString &objName, const QString &Data);
    void    EnableRootUI(bool);
    void    ActivateStatus(bool);
public slots:
    void            LoadFunctions();
    void            ChangeLanguage(int);
    void            ReceiveKeyBoardData(const QString&,const QString&);
    void            SwitchWifiStatus(bool);
private slots:
    void            DeleteData();
    void            SwitchLanguage();
    void            Renewal();
    void            Factory();
    void            LoginUser();
    void            ConnectTCP();
    void            LoadCsv();
    QWidget*        InitMotorUI();
    QWidget*        InitLangUI();
    void            PushBtnGroupToggled(int);
};

#endif // ADMINUI_H
